package eu.vfs;

import java.io.FileNotFoundException;
import java.io.IOException;


public interface VirtualFile {

	public boolean canRead();

	public boolean canWrite();
	
	public boolean createNewFile() throws IOException;
	
	public boolean delete();

	public String getPath();

	public String getName();
	
	public String getParent();

	public VirtualFile getParentFile();

	public boolean isDirectory();

	public boolean isFile();

	public boolean isHidden();
	
	public long size();

	public String[] list();

	public VirtualFile[] listFiles();

	public boolean mkdir();

	public boolean mkdirs();

	public boolean renameTo(VirtualFile arg0);

	public boolean setLastModified(long arg0);

	public boolean setReadOnly();
	
	public boolean setReadable(boolean arg0);

	public boolean setWritable(boolean arg0);
	
	public java.io.InputStream getInputStream() throws FileNotFoundException;
	
	public java.io.OutputStream getOutputStream() throws FileNotFoundException;
	
	public RandomAccess getRandomAccess();
	
	public long lastModified();

}
